package ctn.hibernate.po;

// Generated 2011-12-8 2:29:36 by Hibernate Tools 3.2.4.GA

import static javax.persistence.GenerationType.IDENTITY;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * CtnLinkEvent generated by hbm2java
 */
@Entity
@Table(name = "ctn_link_event", catalog = "cpa")
public class CtnLinkEvent implements java.io.Serializable {

	private Long id;
	private Date updateDate;
	private String desc;
	private String eventLink;
	private String eventVal;
	private Set<CtnLinkApprove> ctnLinkApproves = new HashSet<CtnLinkApprove>(0);

	public CtnLinkEvent() {
	}

	public CtnLinkEvent(Long id, String eventLink) {
		this.id = id;
		this.eventLink = eventLink;
	}

	public CtnLinkEvent(Long id, Date updateDate, String desc, String eventLink,
			String eventVal, Set<CtnLinkApprove> ctnLinkApproves) {
		this.id = id;
		this.updateDate = updateDate;
		this.desc = desc;
		this.eventLink = eventLink;
		this.eventVal = eventVal;
		this.ctnLinkApproves = ctnLinkApproves;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "ID", unique = true, nullable = false)
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "UPDATE_DATE", length = 19)
	public Date getUpdateDate() {
		return this.updateDate;
	}

	public void setUpdateDate(Date updateDate) {
		this.updateDate = updateDate;
	}

	@Column(name = "event_desc", length = 100)
	public String getDesc() {
		return this.desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

	@Column(name = "EVENT_LINK", nullable = false, length = 50)
	public String getEventLink() {
		return this.eventLink;
	}

	public void setEventLink(String eventLink) {
		this.eventLink = eventLink;
	}

	@Column(name = "EVENT_VAL", length = 20)
	public String getEventVal() {
		return this.eventVal;
	}

	public void setEventVal(String eventVal) {
		this.eventVal = eventVal;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "ctnLinkEvent")
	public Set<CtnLinkApprove> getCtnLinkApproves() {
		return this.ctnLinkApproves;
	}

	public void setCtnLinkApproves(Set<CtnLinkApprove> ctnLinkApproves) {
		this.ctnLinkApproves = ctnLinkApproves;
	}

}
